﻿    	<div class="site_map" align="left"><a href="#"> Trang chủ </a><img src="/onlinemarket/img/navbit-arrow-right.png"/><a href="#"> Shop</a>
		</div><!--end div.site_map-->
        <div class="heading">
            <div class="heading_left"></div>
            <div class="heading_right"></div>
            <div class="heading_center">
            	<h3 style="background-image:url(/onlinemarket/img/shipping.png);">Shop</h3>
            </div>
           	<div class="table">
            	
    <form id="form"  method="post" style="clear:both;" action="/onlinemarket/shops/edit">
      <table class="tb">
      	<input type="hidden" name="id" value="<?php echo $idata['Shop']['id'] ?>" />
        <tbody><tr>
          <td>Tên Shop:(<font color="red">*</font>)</td>
          <td><input type="text" value="<?php echo $idata['Shop']['name'] ?>" name="name" style="width:300px;"/></td>
        </tr>
        <tr>
          <td>Sologan</td>
          <td><input type="text" value="<?php echo $idata['Shop']['sologan'] ?>" name="sologan" style="width:300px;"/></td>
        </tr>
        
        <tr>
          <td>Gói dịch vụ</td>
          <td>
          	<select name="shoptype" style="width:150px;">
            <?php foreach($mang as $dv){ ?>
            	<option value="<?php echo $dv['Shoptype']['id'] ?>" 
                <?php if($idata['Shop']['id'] == $dv['Shoptype']['id']) echo('selected="selected"'); ?>
                ><?php echo($dv['Shoptype']['name']); ?></option>
                
            <?php } ?>
            </select>
          </td>
        </tr>
       	<tr>
          <td>Trạng thái:</td>
          <td><select name="status" style="width:150px;" >
                 <option <?php if($idata['Shop']['status'] == 1) echo('selected="selected"'); ?>>Hoạt động</option>
                 <option value="<?php if($idata['Shop']['status'] == 2) echo('selected="selected"'); ?> ">Không hoạt động</option>
             </select></td>
          </tr>
      </tbody>
      <tr>
      	<td>
        	<a style="color:#FFF;text-decoration:none;" onclick="$('#form').submit();" class="ibutton"><span>&nbsp;Lưu&nbsp;</span></a>
        	<a style="text-decoration:none;" onclick="$('#form').each(function(){this.reset()});" class="ibutton"><span>&nbsp;Hủy&nbsp;</span></a>
        </td>
        <td></td>
      </tr>
     </table>
    
    </form>
            </div>
            </div>
        </div><!--end div.heading-->
        